package com.demo.rpc.sample.server;

import com.demo.rpc.annoation.RpcService;

@RpcService(PersonService.class)
public class PersonServiceImpl implements PersonService {
    @Override
    public Person getInfo() {
        Person p = new Person();
        p.setAge(22);
        p.setName("ttt");
        p.setSex("男");
        return p;
    }

    @Override
    public boolean printInfo(Person person) {
        if (person != null) {
            System.out.println(person);
            return true;
        }
        return false;
    }
}
